package com.plan.dao.service.card;

import com.plan.controller.card.response.AwardProductListRes;
import com.plan.entity.card.AwardProduct;
import com.plan.entity.card.Card;
import com.plan.entity.card.PointLog;
import com.plan.entity.card.PrizeDrawLog;

import java.util.List;

public interface AwardDaoService {

    Long insert(AwardProduct product);


    void update(AwardProduct product);

    int delete(Long teamId, Long productId);

    AwardProduct selectOneById(Long teamId, Long productId);

    Integer getExistRateByTeamId(Long teamId);

    List<AwardProductListRes> getAwardProductList(Long teamId);

    void savePrizeDrawResult(Card card, PrizeDrawLog prizeDrawLog, PointLog pointLog);
}
